#include "systemc.h"

SC_MODULE(driver) {
    sc_out<bool> d_a, d_b, d_cin;
    bool t_a, t_b, t_cin;
    ifstream ifh;
    void prc_driver();

    SC_CTOR(driver) {
        SC_THREAD(prc_driver);
        ifh.open("./full_adder_in.dat");
        if(!ifh) {
            cerr << "ERROR: open file failed" << endl;
            sc_stop();
        }
    }
    ~driver() {
        ifh.close();
    }
};